#include <iostream>
#include "vectorfunctions.h"

int insert2003(int x[],int l)
{
	int i;
	if(l%2==0){
		for(i=l;i>l/2;i--)
			x[i]=x[i-1];
		x[l/2]=2003;
		++l;
	}
	else {
		for(i=l;i>l/2;i--)
			x[i]=x[i-1];
		for(i=l+1;i>l/2;--i)
			x[i]=x[i-1];
		l+=2;
		x[(l/2-1)]=2003;
		x[(l/2)+1]=2003;
	}
	
return l;
}

int main()
{
	int l;
	int x[100];
	cout<<"Length of array : ";
	cin>>l;
	readVector(x, l);
	l = insert2003(x, l);
	printVector(x, l);
return 0;
}
